Fix a bug in 'switch-to-buffer'
authorMartin Rudalics <rudalics@gmx.at>
Sun, 23 Jun 2024 08:26:57 +0000 (10:26 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 23 Jun 2024 08:26:57 +0000 (10:26 +0200)
commit5f8a9cd4b6f4441c158a750ad7c5b937b559edd4
tree36d634b381824e203e81a635d1e615d2ade6655f
parent5f9b5803bea0f360a91e00cd85d72ea7f56d6095
Fix a bug in 'switch-to-buffer'

* lisp/window.el (switch-to-buffer): When asked to switch to the
buffer of the selected window,
'switch-to-buffer-obey-display-actions' is non-nil and
'pop-to-buffer' uses the selected window, don't try to restore
window start and point from 'window-prev-buffers' (Bug#71616).
lisp/window.el